<extend name="Common@Layout:layui" />
<block name="title">
    <title>权限组</title>
</block>
<block name="style">
    <style>
        body {
            padding: 10px;
        }
        
        .page {
            text-align: center;
        }
        
        .fl {
            float: left;
        }
        
        .fr {
            float: right;
        }
        
        .main-left {
            position: absolute;
            top: 0px;
            height: 100%;
        }
        
        .main-right {
            margin-left: 310px;
        }
        
        .top-desc {
            width: 100%;
            display: inline-block;
        }
        
        .m-left {
            position: absolute;
            left: 0;
            top: 0;
            height: 210px;
            width: 360px;
            background: #fff;
        }
        
        .m-right {
            margin-left: 360px;
            min-height: 200px;
        }
        
        .m-left .layui-form {
            background: #fff;
            padding-right: 10px;
        }
        
        .m-left .layui-form .layui-form-label {
            width: 60px;
        }
        
        .m-left .layui-form .layui-input-block {
            margin-left: 90px;
        }
        
        .main-right {
            display: none;
        }
    </style>
</block>

<block name="main">
    <div class="my-btn-box">
        <a class="layui-btn btn-add btn-default" onclick="open_iframe_dialog('/admin/auth/edit','创建权限组',['600px','450px'],0)" id="btn-add-article">创建权限组</a>
    </div>

    <div class="layui-form datashow" data-url="{:u('getdata')}" data-to-red="" data-condition="" data-p="1" data-row="10">
        <table class="layui-table">
            <colgroup>
                <col>
                <col>
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>用户组</th>
                    <th>分组</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody class="data"></tbody>
        </table>
        <div class="page"></div>
        <script class="data-tpl" type="text/html">
            {{# layui.each(d, function(index, item){ }}
            <tr>
                <td class="param-title">{{item.title}}</td>
                <td class="param-desc">{{item.group}}</td>
                <td>
                    <button onclick="open_iframe_dialog('/admin/auth/admin_auth/id/{{item.id}}','管理权限',['100%','100%'],0)" class="layui-btn layui-btn-small">权限</button>
                    <button onclick="open_iframe_dialog('/admin/auth/edit/id/{{item.id}}','编辑权限组',['600px','450px'],0)" class="layui-btn layui-btn-small layui-btn-normal">编辑</button>
                    <button class="layui-btn layui-btn-small layui-btn-danger mini_del" data-url="/admin/auth/del/ids/{{item.id}}">删除</button>
                </td>
            </tr>
            {{# }); }} {{# if(d.length === 0){ }} --- No Data --- {{# } }}
        </script>
    </div>
    </div>


</block>
<block name="script">

</block>